import request from '@/utils/request'

// 查询员工离职列表
export function listQuit(query) {
  return request({
    url: '/hrm/staff/quit/list',
    method: 'get',
    params: query
  })
}

// 查询员工离职详细
export function getQuit(id) {
  return request({
    url: '/hrm/staff/quit/' + id,
    method: 'get'
  })
}

// 新增员工离职
export function addQuit(data) {
  return request({
    url: '/hrm/staff/quit',
    method: 'post',
    data: data
  })
}

// 修改员工离职
export function updateQuit(data) {
  return request({
    url: '/hrm/staff/quit',
    method: 'put',
    data: data
  })
}

// 删除员工离职
export function delQuit(id) {
  return request({
    url: '/hrm/staff/quit/' + id,
    method: 'delete'
  })
}
